﻿using System.ComponentModel.DataAnnotations;
using DataAnnotationsExtensions;
using Orchard.ContentManagement;
using Morgma.Infographics.Models;

namespace Morgma.Infographics.Models {
	public class GoogleInfographicsSettingsPart : ContentPart<GoogleInfographicsSettingsPartRecord> {

		[Url]
		[Required]
		public string GoogleInfographicsApiUrl {
			get { return Record.GoogleInfographicsApiUrl; }
			set { Record.GoogleInfographicsApiUrl = value; }
		}

		
		[Integer]
		public int ImageHeight {
			get { return Record.ImageHeight; }
			set { Record.ImageHeight = value; }
		}

		[Integer]
		public int ImageWidth {
            get { return Record.ImageWidth; }
			set { Record.ImageWidth = value; }
		}
		
		public bool GetQRCode {
			get { return Record.GetQRCode; }
			set { Record.GetQRCode = value; }
		}

		public string OutputEncoding {
			get { return Record.OutputEncoding; }
			set { Record.OutputEncoding = value; }
		}

		public string ErrorCorrectionLevel {
			get { return Record.ErrorCorrectionLevel; }
			set { Record.ErrorCorrectionLevel = value; }
		}

		public int Margin {
			get { return Record.Margin; }
			set { Record.Margin = value; }
		}
	}
}